import React, { Component, useState } from "react";
import { Image, View } from "@tarojs/components";
import Taro from "@tarojs/taro";
import Logins from "../../../components/login/index.weapp";
import NavBar from "../../../components/topbar/topbar";
import logo from "../image/logo.png"

import "./login.scss";
const Login = () => {
  // const handleClick = () => {
  //   Taro.navigateTo({
  //     url: '/pages/my/index',
  //   });
  // };
  const toBack = () => {
    Taro.navigateBack().then();
  };
  return (
    <View className="box">
      {/*<View className="pic"></View>*/}
      <NavBar title="" back={true} nback={toBack} />
      <Image className="pic" src={logo}></Image>
      <View className="box2">
        {/* <button className='authBtn1' type='primary' >授权微信昵称、头像</button> */}
        {/*<View className='box21'>*/}
        <Logins />
        {/*</View>*/}
        {/*<View className="box22" />*/}
        {/*<button className='authBtn2' type='default' onClick={handleClick}>暂不授权</button>*/}
      </View>
    </View>
  );
};
export default Login;
